import React, { useState } from "react";
function UseStateDemo() {
	let [count, setCount] = useState(0);
	return (
		<div>
			<h2>计数：{count}</h2>
			<button
				onClick={() => {
					setCount(count + 1);
				}}>
				add count
			</button>
		</div>
	);
}
export default UseStateDemo;
